<?php
/**
 * Created by PhpStorm.
 * User: xiatong
 * Date: 2018/9/25
 * Time: 下午9:35
 */

namespace app\common\model;




class Recharge extends BaseModel
{
    protected $name = 'recharge';
    // 定义时间戳字段名
    /**
     * 充值卡状态
     * @param $value
     * @return array
     */
    public function getStatusAttr($value)
    {
        $status = [-1 => '暂停', 1 => '正常'];
        return ['text' => $status[$value], 'value' => $value];
    }

    public function detile($vip_id){
        return self::get($vip_id, ['*']);
    }


}